package com.haixiaoke.saas.repository.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.repository.core.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 订单记录对象 biz_order_operating_record
 *
 * @author haixiaoke
 * @date 2023-04-12
 */
@Data
public class OrderOperatingRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    public static final String RECORD_REMARK_UN_PAYMENT = "创建订单成功！";
    public static final String RECORD_REMARK_PAYMENT_ERROR = "订单支付失败！";
    public static final String RECORD_REMARK_PAYMENT = "订单支付成功";
    public static final String RECORD_REMARK_CANCELED = "订单延期未支付，已取消！";
    public static final String RECORD_REMARK_USER_CANCELED = "订单已取消！";
    public static final String RECORD_REMARK_BEING_REFUNDED = "订单正在退款！";
    public static final String RECORD_REMARK_REFUNDED = "订单已退款";
    public static final String RECORD_REMARK_RE_LET = "订单续租成功！";

    public static final String OPERATING_BY = "System";

    public static final Integer OPERATING_TYPE_AUTOKINETIC =0;//自动
    public static final Integer OPERATING_TYPE_MANUAL=1;        //手动
    /**
     * 快照记录id
     */
    private Long orderRecordId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 订单原来的状态
     */
    private Integer orderSourceState;

    /**
     * 订单变更的状态
     */
    private Integer orderState;

    /**
     * 操作人
     */
    private String operatingBy;

    /**
     * 自定义，操作人姓名
     */
    private String operatingName;

    /**
     * 自定义，操作人电话
     */
    private String operatingPhone;

    /**
     * 自定义，操作人组织
     */
    private String operatingDepartment;

    /**
     * 操作类型(0:自动；1：手动)
     */
    private Integer operatingType;

    /**
     * 身份类型：1 企业用户 2小程序用户
     */
    private Integer userType;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date operatingTime;


}